package shapes;

public class point2d 
{
		float x;
		float y;
		//GETTERS
		float getX()
		{
			return x;
		}
		float getY()
		{
			return y;
		}
		//SETTERS
		public void setX(float x1)
		{
			x=x1;
		}
		public void setY(float y1)
		{
			y=y1;
		}

		public void setPoint2D(float x1,float y1)
		{
			x=x1;
			y=y1;
		}
		//CONSTRUCTORS
		public point2d()
		{
			x=0.0f;
			y=0.0f;
		}
		public point2d(float x1,float y1)
		{
			x=x1;
			y=y1;
		}
		public String toString()
		{
			String s= "(" + getX()+ ", "+ getY() + ")";
			return s;
		}

}
